package com.xiaoxi.exam.bean.response;

import com.xiaoxi.exam.bean.toefl.CityData;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import lombok.Data;

@Data
public class ToeflCityResponse {

  private List<CityData> cityList;
  private static final String[] hbcities = "北京,河北,山西,天津".split(",");
  private static final String[] dbcities = "黑龙江,吉林,辽宁".split(",");
  private static final String[] hdcities = "安徽,浙江,山东,上海,福建,江苏,江西".split(",");
  private static final String[] hzcities = "湖南,湖北,河南".split(",");
  private static final String[] hncities = "广东".split(",");
  private static final String[] xbcities = "新疆,甘肃,陕西".split(",");
  private static final String[] xncities = "云南,重庆,四川".split(",");

  public ToeflCityResponse() {
    cityList = new ArrayList<>();

    CityData huabei = new CityData();
    huabei.setDistrict("华北");
    huabei.setCities(Arrays.asList(hbcities));
    cityList.add(huabei);

    CityData dongbei = new CityData();
    dongbei.setDistrict("东北");
    dongbei.setCities(Arrays.asList(dbcities));
    cityList.add(dongbei);

    CityData huadong = new CityData();
    huadong.setDistrict("华东");
    huadong.setCities(Arrays.asList(hdcities));
    cityList.add(huadong);

    CityData huazhong = new CityData();
    huazhong.setDistrict("华中");
    huazhong.setCities(Arrays.asList(hzcities));
    cityList.add(huazhong);

    CityData huanan = new CityData();
    huanan.setDistrict("华南");
    huanan.setCities(Arrays.asList(hncities));
    cityList.add(huanan);

    CityData xibei = new CityData();
    xibei.setDistrict("西北");
    xibei.setCities(Arrays.asList(xbcities));
    cityList.add(xibei);

    CityData xinan = new CityData();
    xinan.setDistrict("西南");
    xinan.setCities(Arrays.asList(xbcities));
    cityList.add(xinan);
  }
}
